﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using CoastalClimbing.Code;

namespace CoastalClimbing
{
    public partial class Contact : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Master.BodyTag.Attributes.Add("onLoad", "initialize();"); 

            if(!IsPostBack)
            {
                var hours = DAL.GetHours();

                if (!string.IsNullOrWhiteSpace(hours))
                {
                    hours = hours.Replace("\n", "<br />");

                    litHours.Text = hours;
                }
                //else
                //{
                //    litBusinessHours.Visible = false;
                //}
            }
        }
    }
}